package me.zhengjie.modules.enrstu.service.mapstruct;

import me.zhengjie.base.BaseMapper;
import me.zhengjie.modules.enrstu.domain.Community;
import me.zhengjie.modules.enrstu.service.dto.CommunityDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CommunityMapper extends BaseMapper<CommunityDto, Community> {

    CommunityDto toDto(Community entity);

    List<CommunityDto> toDto(List<Community> entityList);
}